<template>
	<view>
		<view v-for="(item,index) in list" :key="item.vale">
			<view class="item" style="padding: 20rpx;" @click="onClickOrder(item)">
				<text>{{item.name}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '短租订单',
						vale: 1,
					},
					{
						name: '长租订单',
						vale: 2,
					},
					{
						name: '豪车订单',
						vale: 3,
					}
				]
			}
		},
		onLoad() {

		},
		methods: {
			/* 订单类型的点击事件 */
			onClickOrder(item) {
				switch (item.vale) {
					case 1:
						uni.navigateTo({
							url: './shortRentOrder/add'
						})
						break;
					default:
						break;
				}
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>
